<?php

namespace XYWY\Controller;

/**
 * AppbaseController类
 *
 * @since 1.0 <2015-10-21> SoChishun <14507247@qq.com> Added.
 */
class AppbaseController extends \Think\Controller {

    /**
     * 空操作，用于输出404页面
     * @since 1.0 <2015-3-23> SoChishun Added.
     */
    public function _empty() {
        $this->display('XPage/404');
    }

    function _initialize() {
        if ('Y' == DXA('POrgSystem/Config')->c('WEB_SITE_CLOSE')) {
            die(DXA('POrgSystem/Config')->c('CLOSED_ANNOUNCEMENT'));
        }
    }

}
